package org.lc.stk.web.dto.bank;

import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

@Schema(description = "题库DTO基类")
public class BankDTO {
    
    @Schema(description = "题库ID")
    private Integer id;

    @NotBlank(message = "题库名称不能为空")
    @Schema(description = "题库名称", required = true)
    private String name;

    @NotNull(message = "题库状态不能为空")
    @Schema(description = "状态：1-在用，0-停用", required = true)
    private Integer state;

    @Schema(description = "题型ID列表")
    private List<Integer> questionTypeIds;

    @Schema(description = "难度方案ID")
    private Integer difficultySchemaId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public List<Integer> getQuestionTypeIds() {
        return questionTypeIds;
    }

    public void setQuestionTypeIds(List<Integer> questionTypeIds) {
        this.questionTypeIds = questionTypeIds;
    }

    public Integer getDifficultySchemaId() {
        return difficultySchemaId;
    }

    public void setDifficultySchemaId(Integer difficultySchemaId) {
        this.difficultySchemaId = difficultySchemaId;
    }
}